package com.leyou.db2dao;

import com.leyou.domain.db1entity.ConditionAndGoods;
import com.leyou.domain.db1entity.Couponandactivity;
import com.leyou.domain.db2entity.RelateLeyouCoupons;
import com.leyou.domain.db2entity.RelateLeyouCouponsExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RelateLeyouCouponsMapper {
    long countByExample(RelateLeyouCouponsExample example);

    int deleteByExample(RelateLeyouCouponsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RelateLeyouCoupons record);

    int insertSelective(RelateLeyouCoupons record);

    List<RelateLeyouCoupons> selectByExample(RelateLeyouCouponsExample example);

    RelateLeyouCoupons selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RelateLeyouCoupons record, @Param("example") RelateLeyouCouponsExample example);

    int updateByExample(@Param("record") RelateLeyouCoupons record, @Param("example") RelateLeyouCouponsExample example);

    int updateByPrimaryKeySelective(RelateLeyouCoupons record);

    int updateByPrimaryKey(RelateLeyouCoupons record);

    int getCoupon(@Param("list") List<Couponandactivity> couponandactivityList);




}
